package com.example.springbootdemo.springEvent;

import lombok.extern.slf4j.Slf4j;
import org.springframework.context.event.EventListener;

/**
 * @author ：cici
 * @date ：Created in 2019/8/28 13:48
 */
@Slf4j
public class Listener {

    @EventListener
    public void Listener(EventPublish event){
        System.out.println("event" + event.toString());
    }

}
